#ifndef __ADC_H
#define __ADC_H

#include "main.h"
typedef struct ADC_DataTypeDef
{
uint16_t   light;
uint16_t   V;

}ADC_DataTypeDef;


void adc_init(void);
uint32_t getAdc(uint8_t times);

ADC_DataTypeDef getAdcAverage_Light_VR(unsigned char times);

void ADC_Config(void);
u16 getADC_Average1(u8 times);
void ADC_Config_VR(void);
u16 getADC_Average1_VR(u8 times);
#endif
